package com.alex.demo.mybatisplus.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;

import lombok.Getter;

/**
 * 性别枚举类
 */
@Getter
public enum GenderEnum {

	MAN(1, "男"), //
	WOMAN(2, "女");

	GenderEnum(int code, String descp) {
		this.code = code;
		this.descp = descp;
	}

	@EnumValue // 标记数据库存储的值是code
	private final int code;

	private final String descp;

}